home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / DEMONSTR / MATHVIEW.ZIP / LU.M < prev    next >
Text File  |  1993-03-23  |  243b  |  11 lines

  1. function [L,U,P]=lu(x)
  2. %[L,U,P]=lu(x)
  3. %lu interface to the built-in _lu  -  NOT SUPPORTED
  4. %This decomposition is not used as often as the more powerful SVD
  5.  
  6. error('not supported yet');
  7.  
  8. [A,P]= _lu(x);
  9. U=triu(A);
  10. L=tril(A,-1)+eye(A);
  11.